//
//  ContactManager.h
//  Showing
//
//  Created by Ralf on 3/28/15.
//  Copyright (c) 2015 next-software. All rights reserved.
//

@import Foundation;
@import UIKit;

#import "Services.h"
#import "ResultSet.h"

@interface ContactManager : Services

@property(strong) NSDictionary *contact;

- (ResultSet *)queryBySessionID;

- (ResultSet *)queryByUserName:(NSString *)userName;

- (ResultSet *)uploadAvatar:(UIImage *)image;

- (ResultSet *)uploadShopLogo:(UIImage *)image;

- (ResultSet *)uploadBackground:(UIImage *)image;

- (ResultSet *)loadContact;

- (void)logout;

- (ResultSet *)queryFollowing:(NSInteger)max offset:(NSInteger)offset;

- (ResultSet *)queryFollower:(NSInteger)max offset:(NSInteger)offset;

- (ResultSet *)queryTopContact:(NSInteger)max offset:(NSInteger)offset;

- (ResultSet *)isFollowing:(NSString *)userName;

- (ResultSet *)addFollowing:(NSString *)userName;

- (ResultSet *)searchByAlias:(NSString *)alias;

- (ResultSet *)updateProfile:(NSDictionary *)profile;

- (ResultSet *)updatePassword:(NSDictionary *)passwords;

- (ResultSet *)loginWithUserName:(NSString *)userName andPassword:(NSString *)password;

- (ResultSet *)loginWithWeChat:(NSDictionary *)userInfo;

- (ResultSet *)loginWithWeibo:(NSDictionary *)userInfo;

- (ResultSet *)loginWithQQ:(NSDictionary *)userInfo;

- (ResultSet *)registerWithUserName:(NSString *)userName andPassword:(NSString *)password;

- (ResultSet *)requestIdentifyingCode:(NSString *)cellphone;

- (ResultSet *)verifyIdentifyingCode:(NSString *)cellphone identifyingCode:(NSString *)identifyingCode;

- (ResultSet *)verifyShopName:(NSString *)shopName;

@end